package com.epam.qanda.db.model;

import java.io.Serializable;
import java.sql.Timestamp;

import com.epam.qanda.db.annotaion.DBFieldName;

public class QuestionCategory implements Serializable {

	private static final long serialVersionUID = 1L;

	@DBFieldName("id")
	private Integer id;
	@DBFieldName("login")
	private String userLogin;
	@DBFieldName("status")
	private Boolean status;
	@DBFieldName("rating")
	private Integer rating;
	@DBFieldName("photo")
	private String photo;
	@DBFieldName("name")
	private String nameOfCategory;
	@DBFieldName("category_id")
	private Integer categoryId;
	@DBFieldName("text")
	private String text;
	@DBFieldName("title")
	private String title;
	@DBFieldName("time")
	private Timestamp time;
	@DBFieldName("likes")
	private Integer likes;
	@DBFieldName("amount_answers")
	private Long amountOfAnswers;
	@DBFieldName("user_id")
	private Integer userId;

	public Integer getRating() {
		return rating;
	}

	public void setRating(Integer rating) {
		this.rating = rating;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserLogin() {
		return userLogin;
	}

	public void setUserLogin(String userLogin) {
		this.userLogin = userLogin;
	}

	public String getNameOfCategory() {
		return nameOfCategory;
	}

	public void setNameOfCategory(String nameOfCategory) {
		this.nameOfCategory = nameOfCategory;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public Integer getLikes() {
		return likes;
	}

	public void setLikes(Integer likes) {
		this.likes = likes;
	}

	public Long getAmountOfAnswers() {
		return amountOfAnswers;
	}

	public void setAmountOfAnswers(Long amountOfAnswers) {
		this.amountOfAnswers = amountOfAnswers;
	}

	public int getCategoryId() {
		return categoryId;
	}

	@Override
	public String toString() {
		return "QuestionCategory [id=" + id + ", userLogin=" + userLogin + ", nameOfCategory="
				+ nameOfCategory + ", categoryId=" + categoryId + ", text=" + text + ", title="
				+ title + ", time=" + time + ", likes=" + likes + ", amountOfAnswers="
				+ amountOfAnswers + "]";
	}

}
